﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Map.aspx.cs" Inherits="TimeAxis.Map" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <script type="text/javascript" src="Scripts/dtree.js"></script>
    <div>
        <div id="m" style="width: 95%">
            `<div style="float: left; width: 20%; min-height: 550px; text-align: left;">
                <%
                    Response.Write("<script type=\"text/javascript\">");
                    Response.Write("d = new dTree('d');");
                    Response.Write("d.add(0, -1, '系统管理');");
                    foreach (TimeAxis.Models.Category c in categorys)
                    {
                        Response.Write("d.add(" + c.Id + ", 0, '" + c.CName + "', 'Map.aspx?cid=" + c.Id + "', '" + c.CName + "', 'I1');");
                    }
                    Response.Write("document.write(d);");
                    Response.Write("</script>");
                %>
            </div>
            <div style="float: right; width: 79%; min-height: 550px; text-align: left;">
                <div style="width: 80%;">
                    <%
                        foreach (TimeAxis.Models.Doc doc in docs)
                        {
                    %>
                    <div style="padding-bottom: 30px;">
                        <div style="line-height: 40px; font-size: 16pt;">
                            <a href="Detail.aspx?docid=<%= doc.Id %>">
                                <%= doc.Title %></a></div>
                        <div>
                            赞（<%= doc.GoodCount %>） &nbsp;&nbsp;&nbsp;&nbsp;发布者:<%= doc.Users.Username %>
                            &nbsp;&nbsp;&nbsp;&nbsp;发布时间：<%= doc.Pdate.ToShortDateString() %></div>
                    </div>
                    <%
                        }
                    %>
                </div>
            </div>
        </div>
    </div>
    <div style="clear: both;">
    </div>
    <div style="height: 50px; line-height: 50px;">
        &nbsp;</div>
</asp:Content>
